/* Copyright (c) 2024 Qualcomm Technologies International, Ltd. */
/* %%version */

#ifndef GATT_OTS_CLIENT_DEBUG_H_
#define GATT_OTS_CLIENT_DEBUG_H_

#define LEA_OTS_LOG_ENABLE 0x00000400

#if (defined(LEA_OTS_LOG_ENABLE) && defined(LEA_LOG_MASK))
#define GATT_OTS_CLIENT_INFO(...)     CSR_LOG_TEXT_INFO((CsrBtOtsLto, 0, __VA_ARGS__))
#define GATT_OTS_CLIENT_WARNING(...)  CSR_LOG_TEXT_WARNING((CsrBtOtsLto, 0, __VA_ARGS__))
#define GATT_OTS_CLIENT_ERROR(...)    CSR_LOG_TEXT_ERROR((CsrBtOtsLto, 0, __VA_ARGS__))
#define GATT_OTS_CLIENT_PANIC(...)   {CSR_LOG_TEXT_ERROR((CsrBtOtsLto, 0, __VA_ARGS__)); CsrPanic(CSR_TECH_BT, CSR_BT_PANIC_MYSTERY, __VA_ARGS__);}

#else

#define GATT_OTS_CLIENT_INFO       printf
#define GATT_OTS_CLIENT_WARNING    printf
#define GATT_OTS_CLIENT_ERROR      printf
#define GATT_OTS_CLIENT_PANIC      printf

#endif
#endif /* GATT_OTS_CLIENT_DEBUG_H_ */
